package metalink.admin;

import java.util.ArrayList;

import model.admin.GetBatchListMo;
import model.admin.GetCourseListMo;

import vo.StudentDetailsVo;
import vo.mixed.CourseListVo;
import vo.mixed.DegreeListVo;
import vo.mixed.DepartmentListVo;
import vo.mixed.StudentListVo;
import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class GetDegreeList extends ActionSupport {

	@SuppressWarnings("unused")
	int degree_id;
	int batch_id;
	int department_id;
	ArrayList<DegreeListVo> degree_list;
	ArrayList<StudentListVo> degree_student_list;
	ArrayList<CourseListVo> degree_course_list;
	ArrayList<DepartmentListVo> degree_department_list;
	ArrayList<CourseListVo> degree_department_course_list;

	public ArrayList<CourseListVo> getDegree_course_list() {
		return degree_course_list;
	}

	public ArrayList<CourseListVo> getDegree_department_course_list() {
		return degree_department_course_list;
	}

	public void setDegree_department_course_list(
			ArrayList<CourseListVo> degree_department_course_list) {
		this.degree_department_course_list = degree_department_course_list;
	}

	public int getBatch_id() {
		return batch_id;
	}

	public void setBatch_id(int batch_id) {
		this.batch_id = batch_id;
	}

	public int getDegree_id() {
		return degree_id;
	}

	public void setDegree_id(int degree_id) {
		this.degree_id = degree_id;
	}

	public void setDegree_course_list(ArrayList<CourseListVo> degree_course_list) {
		this.degree_course_list = degree_course_list;
	}

	public ArrayList<DepartmentListVo> getDegree_department_list() {
		return degree_department_list;
	}

	public void setDegree_department_list(
			ArrayList<DepartmentListVo> degree_department_list) {
		this.degree_department_list = degree_department_list;
	}

	public ArrayList<DegreeListVo> getDegree_list() {
		return degree_list;
	}

	public void setDegree_student_list(
			ArrayList<StudentListVo> degree_student_list) {
		this.degree_student_list = degree_student_list;
	}

	public ArrayList<StudentListVo> getDegree_student_list() {
		return degree_student_list;
	}

	public void setDegree_list(ArrayList<DegreeListVo> degree_list) {
		this.degree_list = degree_list;
	}

	public String execute() {
		GetBatchListMo degree_list_object = new GetBatchListMo();
		setDegree_list(degree_list_object.getBatchDegreeList(0));
		return SUCCESS;
	}

	public String getDegreeStudentDetails() {
		GetBatchListMo degree_student_obj = new GetBatchListMo();
		setDegree_student_list(degree_student_obj.getDegreeStudentList(
				degree_id, 0));
		System.out.println(degree_id);
		return SUCCESS;
	}

	public String getDegreeCourseDetails() throws Exception {
		GetCourseListMo degree_course_obj = new GetCourseListMo();
		setDegree_course_list(degree_course_obj.getDegreeDepartmentCourseList(degree_id, 0,0));
		

		return SUCCESS;
	}

	public String getDegreeDepartmentDetails() throws Exception {
		GetBatchListMo degree_department_obj = new GetBatchListMo();
		setDegree_department_list(degree_department_obj.getDepartmentList(0,
				degree_id));
		return SUCCESS;
	}

	public String getDegreeDepartmentCourseDetails() throws Exception {
		GetCourseListMo degree_department_course_obj = new GetCourseListMo();
		setDegree_department_course_list(degree_department_course_obj
				.getDegreeDepartmentCourseList(degree_id, department_id,0));
		return SUCCESS;
	}
}
